﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using CommunitySystemModel;
using CommunitySystem.BO;

namespace CommunitySystem.Web.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“DiaoDongService”。
    public class DiaoDongService : IDiaoDongService
    {
        private DiaoDongBO bo = new DiaoDongBO();
        public ObservableCollection<DiaoDongModel> GetDiaoDong(string OrgIDs, int id, string diaochubenqu, string niandu, string banlizhuangtai)
        {
            return bo.GetDiaoDong(OrgIDs, id, diaochubenqu, niandu, banlizhuangtai);
        }

        public bool AddDiaoDong(DiaoDongModel model)
        {
            return bo.AddDiaoDong(model);
        }

        public bool UpdateDiaoDong(DiaoDongModel model)
        {
            return bo.UpdateDiaoDong(model);
        }

        public bool ShenHeDiaoDong(int id, string status, DiaoDongModel model)
        {
            return bo.ShenHeDiaoDong(id, status,model);
        }

        public bool CancelShenHeDiaoDong(int id,string status)
        {
            return bo.CancelShenHeDiaoDong(id, status);
        }

        public bool TuiHuiShenHeDiaoDong(int id, string status, DiaoDongModel model)
        {
            return bo.TuiHuiShenHeDiaoDong(id, status,model);
        }


        public void ChaRuRenYuanKu(DiaoDongModel model)
        {
            bo.ChaRuRenYuanKu(model);
        }


        public bool DeleteShenHeDiaoDong(int id)
        {
            return bo.DeleteShenHeDiaoDong(id);
        }

        public bool CanShenHeDiaoDong(DiaoDongModel model)
        {
            return bo.CanShenHeDiaoDong(model);
        }


        public bool TongYiDiaoDong(int id, string status)
        {
            return bo.TongYiDiaoDong(id, status);
        }

        #region IDiaoDongService 整建制转入


        public ObservableCollection<ZJZZRModel> GetZJZZRModel(string con, int index, int pagesize)
        {
            return ZJZZRBO.GetZJZZRModel(con, index, pagesize);
        }

        public int GetZJZZRModelCount(string con)
        {
            return ZJZZRBO.GetZJZZRModelCount(con);
        }

        public bool AddZJZZR(ZJZZRModel model)
        {
            return ZJZZRBO.AddZJZZR(model);
        }
        public bool AddZJZZR_EMP(List<ZJZZR_Emp> models)
        {
            return ZJZZRBO.AddZJZZR_EMP(models);
        }
        public ObservableCollection<ZJZZR_Emp> GetZJZZR_Emp(string con, int index, int pagesize)
        {
            return ZJZZRBO.GetZJZZR_Emp(con, index, pagesize);
        }
        public bool SBZJZZR_EMP(ZJZZR_Emp model)
        {
            return ZJZZRBO.SBZJZZR_EMP(model);
        }
        public bool QRZR(string con)
        {
            return ZJZZRBO.QRZR(con);
        }
        #endregion





        #region IDiaoDongService 成员


      

        #endregion
    }
}
